/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:org.cesgroup.course.api.bo</p>
 * <p>File:UserBo.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 Sep 2, 2019 2:04:23 PM
 */
package org.cesgroup.course.api.bo;

import org.cesgroup.course.api.dao.UserRepository;
import org.cesgroup.course.api.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date Sep 2, 2019 2:04:23 PM
 * @version 1.0.2019
 */
@Service
@Transactional(isolation = Isolation.READ_COMMITTED)
public class UserBo implements IUserBo {

	/**
	 * @see org.cesgroup.course.api.bo.IUserBo#save(org.cesgroup.course.api.po.User)
	 * @author chanlong(陈龙)
	 * @date Sep 2, 2019 2:05:40 PM
	 */
	@Override
	public User save(User user) {
		return dao.save(user);
	}
	
	/**
	 * @see org.cesgroup.course.api.bo.IUserBo#findAll()
	 * @author chanlong(陈龙)
	 * @date Sep 2, 2019 2:19:05 PM
	 */
	@Override
	public Iterable<User> findAll() {
		return dao.findAll();
	}
	
	@Autowired
	private UserRepository dao;

}
